# Maintainer: Noel Kuntze <noel.kuntze@contauro.com>
pkgname=py3-mattermostdriver
pkgdesc="Python Mattermost Driver for APIv4"
pkgver=7.3.2
pkgrel=0
arch="noarch"
url="https://vaelor.github.io/python-mattermost-driver/"
license="MIT"
options="!check" # No test suite
depends="python3 py3-requests py3-websockets"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"

source="$pkgname-$pkgver.tar.gz::https://github.com/Vaelor/python-mattermost-driver/archive/refs/tags/$pkgver.tar.gz
	0001-ssl-context.patch
	"

builddir="$srcdir"/python-mattermost-driver-$pkgver

build() {
	gpep517 build-wheel \
		--wheel-dir dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" dist/*.whl
}

sha512sums="
0da6384dce40c3ee5332409e2b29de55c3d1431fa22b70dbe0f8c02df84c5ceb6291f24e4379e611d3ef636af5e171e9f95c20591796b1128e07cfc93bb8468b  py3-mattermostdriver-7.3.2.tar.gz
24154f2fe7f912a24a759cd06bef4efa52710aaf4f3743ac8996ede89fc3e0a3baa12a68c9aab8b311399f0d3799e423ff036ad98caa06d2f8c8e8fe0397ed47  0001-ssl-context.patch
"
